using UnityEngine;

public class DelayShowTargetGameObjects : MonoBehaviour
{
    public GameObject[] gos;

    public float delayTime = 1;

    void OnEnable()
    {
        foreach (var go in gos)
        {
            go.SetActive(false);
        }
        Invoke ("Show", delayTime);
    }


    void Show () {
        foreach (var go in gos)
        {
            go.SetActive(true);
        }
    }

    void OnDisable()
    {
        this.CancelInvoke ();
    }

    void OnDestroy()
    {
        this.CancelInvoke ();
    }
}